package com.plus.demo.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.plus.demo.po.User;
import com.plus.demo.service.BizService;

@Controller
@RequestMapping("/v0")
@Scope("singleton")
public class UserController {
	@Autowired
	private BizService bizService;
	@ResponseBody
	@RequestMapping("/saveAndQuery")
	public List<User> save() {
		return bizService.saveAndQuery();
	}
}
